package com.wuzheng.wisgo.sanitation.cloud.service.picture;

import com.wuzheng.wisgo.sanitation.cloud.model.picture.PictureDTO;
import com.wuzheng.wisgo.sanitation.cloud.repository.entity.person.User;
import com.wuzheng.wisgo.sanitation.cloud.repository.entity.picture.Picture;
import com.wuzheng.wisgo.sanitation.framework.base.service.BaseService;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author：hoipang
 * @date：Created in 2019-12-11
 * @description：图片信息服务类
 * @modified By：
 * @version: 1.0
 */
public interface PictureService extends BaseService<Picture> {

    /**
     * 图片上传
     * @param multipartFile
     * @return
     */
    PictureDTO upload(User user, MultipartFile multipartFile);

    /**
     * 删除图片
     * @param fileUrl
     */
    void deleteFile(String fileUrl);
}
